package com.yourcompany.vo;

import java.io.Serializable;
import java.util.Arrays;

/**
 * 
 * @author tzj
 *
 * 2016-11-24  下午5:07:27
 */
public class UploadDataVo implements  Serializable{

	/**
	 * tzj 2016-11-24 下午5:07:23
	 */
	private static final long serialVersionUID = 3619595220839085825L;

	/**
	 * 数据区内容

 pk_id                主键ID    | bigint(20)  | NO   | PRI | NULL    | auto_increment |
| fk_customer_id       客户ID    | bigint(20)  | NO   |     | NULL    |                |
| region               区域      | varchar(10) | YES  |     | NULL    |                |
| collection           采集      | varchar(10) | YES  |     | NULL    |                |
| contentlength        内容长度  | varchar(10) | YES  |     | NULL    |                |
| identification       数据标识  | varchar(10) | YES  |     | NULL    |                |
| collectiontime       采集时间  | varchar(10) | YES  |     | NULL    |                |
| deviceaddress        设备地址  | varchar(10) | YES  |     | NULL    |                |
| vendornumbe          厂商编号  | varchar(10) | YES  |     | NULL    |                |
| contentstatus        采集状态  | varchar(10) | YES  |     | NULL    |                |
| collectoraddress     采集器地址| varchar(10) | YES  |     | NULL    |                |
| functioncode         功能码    | varchar(10) | YES  |     | NULL    |                |
| datanumber           数据个数  | varchar(10) | YES  |     | NULL    |                |
| instantaneousflow    瞬时流量  | varchar(10) | YES  |     | NULL    |                |
| cumulativeflow       累计流量  | varchar(10) | YES  |     | NULL    |                |
| instantaneousheat    瞬时热量  | varchar(10) | YES  |     | NULL    |                |
| accumulatedheat      累计热量  | varchar(10) | YES  |     | NULL    |                |
| temperature          温度      | varchar(10) | YES  |     | NULL    |                |
| pressure             压力      | varchar(10) | YES  |     | NULL    |                |
| frequency            频率      | varchar(10) | YES  |     | NULL    |                |
| differentialpressure 压差      | varchar(10) | YES  |     | NULL    |                |
| density              密度      | varchar(10) | YES  |     | NULL    |                |
| outagetime         累积停电时间| varchar(10) | YES  |     | NULL    |                |
| outagefrequency      停电次数  | varchar(10) | YES  |     | NULL    |                |
| callpoliceone        报警1     | varchar(10) | YES  |     | NULL    |                |
| callpolicetwo        报警2     | varchar(10) | YES  |     | NULL    |                |
| crccheck             crc校验   | varchar(10) | YES  |     | NULL    |                |
| createdate   	       创建时间  | varchar(30) | NO   |     | NULL    |             

	 */
	private  short  region;
	
	private  short  collection;
	
	private short  contentlength;
	
	private  short  identification;
	
	private byte[]  collectiontime=new byte[5];
	
	private int  deviceaddress;
	
	private byte[]  vendornumbe=new byte[3];
	
	private  byte contentstatus;
	
	private  byte collectoraddress;
	
	private byte functioncode;
	
	private short datanumber;
	
	private int  instantaneousflow;
	
	private  int cumulativeflow;
	
	private  int instantaneousheat;
	
	private  int  accumulatedheat;
	
	private  int temperature;
	
	private  int pressure;
	
	private int frequency;
	
	private int differentialpressure;
	
	private int density;
	
	private int  outagetime;
	
	private  byte outagefrequency;
	
	private byte callpoliceone;
	
	private byte callpolicetwo;
	
	private short  crccheck;

	public short getRegion() {
		return region;
	}

	public void setRegion(short region) {
		this.region = region;
	}

	public short getCollection() {
		return collection;
	}

	public void setCollection(short collection) {
		this.collection = collection;
	}

	public short getContentlength() {
		return contentlength;
	}

	public void setContentlength(short contentlength) {
		this.contentlength = contentlength;
	}

	public short getIdentification() {
		return identification;
	}

	public void setIdentification(short identification) {
		this.identification = identification;
	}

	public byte[] getCollectiontime() {
		return collectiontime;
	}

	public void setCollectiontime(byte[] collectiontime) {
		this.collectiontime = collectiontime;
	}

	public int getDeviceaddress() {
		return deviceaddress;
	}

	public void setDeviceaddress(int deviceaddress) {
		this.deviceaddress = deviceaddress;
	}

	public byte[] getVendornumbe() {
		return vendornumbe;
	}

	public void setVendornumbe(byte[] vendornumbe) {
		this.vendornumbe = vendornumbe;
	}

	public byte getContentstatus() {
		return contentstatus;
	}

	public void setContentstatus(byte contentstatus) {
		this.contentstatus = contentstatus;
	}

	public byte getCollectoraddress() {
		return collectoraddress;
	}

	public void setCollectoraddress(byte collectoraddress) {
		this.collectoraddress = collectoraddress;
	}

	public byte getFunctioncode() {
		return functioncode;
	}

	public void setFunctioncode(byte functioncode) {
		this.functioncode = functioncode;
	}

	public short getDatanumber() {
		return datanumber;
	}

	public void setDatanumber(short datanumber) {
		this.datanumber = datanumber;
	}

	public int getInstantaneousflow() {
		return instantaneousflow;
	}

	public void setInstantaneousflow(int instantaneousflow) {
		this.instantaneousflow = instantaneousflow;
	}

	public int getCumulativeflow() {
		return cumulativeflow;
	}

	public void setCumulativeflow(int cumulativeflow) {
		this.cumulativeflow = cumulativeflow;
	}

	public int getInstantaneousheat() {
		return instantaneousheat;
	}

	public void setInstantaneousheat(int instantaneousheat) {
		this.instantaneousheat = instantaneousheat;
	}

	public int getAccumulatedheat() {
		return accumulatedheat;
	}

	public void setAccumulatedheat(int accumulatedheat) {
		this.accumulatedheat = accumulatedheat;
	}

	public int getTemperature() {
		return temperature;
	}

	public void setTemperature(int temperature) {
		this.temperature = temperature;
	}

	public int getPressure() {
		return pressure;
	}

	public void setPressure(int pressure) {
		this.pressure = pressure;
	}

	public int getFrequency() {
		return frequency;
	}

	public void setFrequency(int frequency) {
		this.frequency = frequency;
	}

	public int getDifferentialpressure() {
		return differentialpressure;
	}

	public void setDifferentialpressure(int differentialpressure) {
		this.differentialpressure = differentialpressure;
	}

	public int getDensity() {
		return density;
	}

	public void setDensity(int density) {
		this.density = density;
	}

	public int getOutagetime() {
		return outagetime;
	}

	public void setOutagetime(int outagetime) {
		this.outagetime = outagetime;
	}

	public byte getOutagefrequency() {
		return outagefrequency;
	}

	public void setOutagefrequency(byte outagefrequency) {
		this.outagefrequency = outagefrequency;
	}

	public byte getCallpoliceone() {
		return callpoliceone;
	}

	public void setCallpoliceone(byte callpoliceone) {
		this.callpoliceone = callpoliceone;
	}

	public byte getCallpolicetwo() {
		return callpolicetwo;
	}

	public void setCallpolicetwo(byte callpolicetwo) {
		this.callpolicetwo = callpolicetwo;
	}

	public short getCrccheck() {
		return crccheck;
	}

	public void setCrccheck(short crccheck) {
		this.crccheck = crccheck;
	}

	@Override
	public String toString() {
		return "UploadDataVo [region=" + region + ", collection=" + collection
				+ ", contentlength=" + contentlength + ", identification="
				+ identification + ", collectiontime="
				+ Arrays.toString(collectiontime) + ", deviceaddress="
				+ deviceaddress + ", vendornumbe="
				+ Arrays.toString(vendornumbe) + ", contentstatus="
				+ contentstatus + ", collectoraddress=" + collectoraddress
				+ ", functioncode=" + functioncode + ", datanumber="
				+ datanumber + ", instantaneousflow=" + instantaneousflow
				+ ", cumulativeflow=" + cumulativeflow + ", instantaneousheat="
				+ instantaneousheat + ", accumulatedheat=" + accumulatedheat
				+ ", temperature=" + temperature + ", pressure=" + pressure
				+ ", frequency=" + frequency + ", differentialpressure="
				+ differentialpressure + ", density=" + density
				+ ", outagetime=" + outagetime + ", outagefrequency="
				+ outagefrequency + ", callpoliceone=" + callpoliceone
				+ ", callpolicetwo=" + callpolicetwo + ", crccheck=" + crccheck
				+ "]";
	}       
	 
	 

}
